﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Eternal.DataVisualization">
    <Style TargetType="Line" x:Key="axisLineStyle">
        <Setter Property="Stroke" Value="{StaticResource ApplicationForegroundThemeBrush}"/>
        <Setter Property="StrokeThickness" Value="1"/>
        <Setter Property="Opacity" Value="0.6"/>
    </Style>
    <Style TargetType="Line" x:Key="outerTickLineStyle">
        <Setter Property="Stroke" Value="{StaticResource ApplicationForegroundThemeBrush}"/>
        <Setter Property="Opacity" Value="0.6"/>
        <Setter Property="StrokeThickness" Value="1"/>
    </Style>
    <Style TargetType="Line" x:Key="gridLineStyle">
        <Setter Property="Stroke" Value="{StaticResource ApplicationForegroundThemeBrush}"/>
        <Setter Property="Opacity" Value="0.2"/>
        <Setter Property="StrokeThickness" Value="1"/>
    </Style>
    <Style TargetType="Line" x:Key="innerTickLineStyle">
        <Setter Property="Stroke" Value="{StaticResource ApplicationForegroundThemeBrush}"/>
        <Setter Property="Opacity" Value="0.6"/>
        <Setter Property="StrokeThickness" Value="1"/>
    </Style>
    <Style TargetType="local:Axis">
        <Setter Property="AxisLineStyle" Value="{StaticResource axisLineStyle}"/>
        <Setter Property="InnerTickStyle" Value="{StaticResource innerTickLineStyle}"/>
        <Setter Property="OuterTickStyle" Value="{StaticResource outerTickLineStyle}"/>
        <Setter Property="GridLineStyle" Value="{StaticResource gridLineStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:Axis">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <StackPanel x:Name="PART_Root"></StackPanel>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
